{template "nheader.html"}


<div class="mctable">
	<div class="table-toolbar">
		<div class="row">
			<div class="col-md-6">
				<div class="btn-group">
					<a class="btn green" href="{dr_member_url('address/add')}"> 添加新地址
						<i class="fa fa-plus"></i>
					</a>
				</div>
			</div>
		</div>
	</div>

	<div class="table-responsive">
		<table class="table">
			<thead>
			<tr>
				<th width="50" class="text-center"> 默认 </th>
				<th width="150"> 姓名 </th>
				<th width="150"> 电话 </th>
				<th width="120"> 邮编 </th>
				<th> 地址 </th>
				<th> 操作 </th>
			</tr>
			</thead>
			<tbody id="dr_body">
			{loop $list $t}
			<tr>
				<td class="text-center"> {if $t.default}
					<span class="font-green-turquoise"><i class="fa fa-check-circle-o"></i></span>
					{else}
					<span class="font-red"><i class="fa fa-times-circle-o"></i></span>
					{/if} </td>
				<td class="">{$t.name}</td>
				<td class="">{$t.phone}</td>
				<td class="">{$t.zipcode}</td>
				<td class="">{dr_linkagepos('address', $t.city, '&nbsp;&nbsp;', NULL)}&nbsp;&nbsp;{$t.address}</td>
				<td class="">
					<a href="{dr_member_url('address/edit', array('id'=>$t.id))}" class="btn green btn-xs" ><i class="fa fa-edit"></i> 修改</a>
					<a href="{dr_member_url('address/del', array('id'=>$t.id))}" class="btn red-mint btn-xs" ><i class="fa fa-trash-o"></i> 删除</a>
				</td>
			</tr>
			{/loop}
			</tbody>
		</table>
	</div>

</div>



{template "nfooter.html"}